package com.yjd.comm.jms;

import java.io.Serializable;

import com.alibaba.fastjson.JSON;

public class AliyunMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 
     * 消息发送方id唯一的
     */
    private String MessageId;

    /**
     * 消息内容
     */
    private String Message;

    public AliyunMessage() {
    };

    public AliyunMessage(String MessageId, String Message) {
	this.MessageId = MessageId;
	this.Message = Message;
    }

    public String getMessageId() {
        return MessageId;
    }

    public void setMessageId(String messageId) {
        MessageId = messageId;
    }

    public String getMessage() {
	return Message;
    }

    public void setMessage(String message) {
	Message = message;
    }

    public static <T extends Object> T getObject(Object obj, Class<T> cs) {
	return JSON.parseObject(obj.toString(), cs);
    }

}
